package cn.yza.并发.构建高效且可伸缩的结果缓存;

import java.math.BigInteger;

/**
 * @author Honglixi
 * @create 2021-11-02 21:59
 */
public class ExpensiveFunction implements Computable<String, BigInteger>{
    @Override
    public BigInteger compute(String arg) throws InterruptedException {
        //在经过长时间的计算后
        return new BigInteger(arg);
    }
}
